//
//  LeftHeardView.m
//  soccer
//
//  Created by 上官千城 on 15/9/2.
//  Copyright (c) 2015年 上官千城. All rights reserved.
//

#import "ODrawerHeardView.h"

@implementation ODrawerHeardView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}

-(void)creatView
{
    self.TeamLogo = [[UIImageView alloc]initWithFrame:CGRectMake(20, 60, 80, 80)];
    self.TeamLogo.backgroundColor = [UIColor clearColor];
    self.TeamLogo.layer.masksToBounds = YES;
    self.TeamLogo.layer.cornerRadius = 40;
    self.TeamLogo.image = [UIImage imageNamed:@"402@2x"];
    [self addSubview:self.TeamLogo];
    
    UILabel *team = [[UILabel alloc]initWithFrame:CGRectMake(self.TeamLogo.frame.origin.x+self.TeamLogo.frame.size.width+20, self.TeamLogo.frame.origin.y, 120, 30)];
    team.text = @"主队:阿森纳";
    team.textColor = [UIColor whiteColor];
    team.font = [UIFont systemFontOfSize:18];
//    team.backgroundColor = [UIColor whiteColor];
    [self addSubview:team];
    
    self.TeamName = [[UILabel alloc]initWithFrame:CGRectMake(team.frame.origin.x, team.frame.origin.y + team.frame.size.height+5, 120, 30)];
    self.TeamName.text = @"拜仁慕尼黑";
//    self.TeamName.textColor = [UIColor whiteColor];
    self.TeamName.font = [UIFont systemFontOfSize:18];
    self.TeamName.backgroundColor = [UIColor whiteColor];
//    [self addSubview:self.TeamName];

    self.startName = [[UILabel alloc]initWithFrame:CGRectMake(team.frame.origin.x, team.frame.origin.y + team.frame.size.height+5, 120, 60)];
    self.startName.text = @"卡卡,罗纳尔多,欧文,希勒,卡纳瓦罗";
    self.startName.numberOfLines = 2;
    self.startName.textColor = [UIColor whiteColor];
    self.startName.font = [UIFont systemFontOfSize:13];
//    self.startName.backgroundColor = [UIColor whiteColor];
//    self.startName.textColor = [UIColor blueColor];
    [self addSubview:self.startName];
    
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(0, self.frame.size.height, WIDTH, 1)];
    line.backgroundColor = RGBACOLOR(110, 196, 0, 1);
    [self addSubview:line];
    
    
}


@end
